package database.Models;
public class User {
	private int id;
	private String username;
	private String password;
	private String primaryMail;
	private String home;
	private String age;
	private String sex;
	public String getHome() {
		return home;
	}

	public void setHome(String home) {
		User.getInstance().home = home;
	}

	public String getAge() {
		return User.getInstance().age;
	}

	public void setAge(String age) {
		User.getInstance().age = age;
	}

	public String getSex() {
		return User.getInstance().sex;
	}

	public void setSex(String sex) {
		User.getInstance().sex = sex;
	}

	
	
	 public String getPrimaryMail() {
		return User.getInstance().primaryMail;
	}

	public void setPrimaryMail(String primaryMail) {
		User.getInstance().primaryMail = primaryMail;
	}

	private static User mInstance= null;

	    public int someValueIWantToKeep;

	    private User(){}

	    public static synchronized User getInstance(){
	    	if(null == mInstance){
	    		mInstance = new User();
	    	}
	    	return mInstance;
	    }
public static void destroyUser(){
	mInstance = null;
}
	
	public String getPassword() {
		return User.getInstance().password;
	}

	public void setPassword(String password) {
		User.getInstance().password = password;
	}

	public String getUserName() {
		return User.getInstance().username;
	}

	public void setUserName(String date) {
		User.getInstance().username = date;
	}	



	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}


	// Will be used by the ArrayAdapter in the ListView
//	@Override
//	public String toString() {
//		return name;
//	}
}